import request from '@u/request.js'

// 会员管理

// 查询会员列表
export function siteList(data) {
  return request({
    url: '/member/api/member/getMemberList',
    method: 'post',
    data
  })
}

// 退货 商品列表
export function queryProductList(data) {
  return request({
    url: '/member/api/returnGoods/queryProductList',
    method: 'post',
    data
  })
}

// 退货 商品列表
export function queryProductListPurchase(data) {
  return request({
    url: '/member/api/purchase/queryProductList',
    method: 'post',
    data
  })
}

// 物流公司
export function getLogisticsList(data) {
  return request({
    url: '/member/api/logistics/getLogistics',
    method: 'post',
    data
  })
}

// 查询退款单详情
export function queryReturnRecordDetail(data) {
  return request({
    url: '/member/api/returnGoods/queryReturnRecordDetail',
    method: 'post',
    data
  })
}

// 确认退款
export function returnHandler(data) {
  return request({
    url: '/member/api/returnGoods/returnHandler',
    method: 'post',
    data
  })
}

export function perchaseRecord(data) {
  return request({
    url: '/member/api/purchase/queryDetailsByIntenNum',
    method: 'post',
    data
  })
}
